{template admin_improt}
<script language="javascript">
KE.show({        
	id : 'content', //TEXTAREA输入框的ID    
	resizeMode : 1,
    cssPath : './index.css',
    urlType: 'absolute',
    items : [
    'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
    'removeformat', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
    'insertunorderedlist', 'emoticons', 'image', 'link']
});
KE.show({        
	id : 'company_content', //TEXTAREA输入框的ID    
	resizeMode : 1,
    cssPath : './index.css',
    urlType: 'absolute',
    items : [
    'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
    'removeformat', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
    'insertunorderedlist', 'emoticons', 'image', 'link']
});
</script>
<script type="text/javascript">
$(document).ready(function(){
	$("#s_time").datepicker($.datepicker.regional['zh-CN']);
});
$(document).ready(function(){
	$("#e_time").datepicker($.datepicker.regional['zh-CN']);
});
</script>
<style type="text/css">
<!--
.errorStyle{width:750px;margin:5px;padding:5px;background:#FFD4C9;border:1px solid #FF724F;}
-->
</style>

<div class="mainStyle">
	<div class="mainTitle">
		<span class="mainTitle_text">
			工作机会管理
		</span>
	</div>
	<!--
	<form action="admin.php?p=brands" method="post">
			<div class="mainTitle_btn"><a href="?p=brands&a=brandsadd&type=add"><img src="style/images/btn1.gif" border="0"></a></div>
			<div class="mainSearch_text">
				<span>标题：</span>
				<span><input type="text" name="title" style="width:200px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="$_REQUEST['title']"/></span>
				<span>时间：</span>
				<span><input type="text" id="startTime" name="startTime" value="{$_REQUEST['startTime']}" style="width:70px;height:16px;padding:3px;border:1px solid #bbbbbb;"/></span>
				<span>至</span>
				<span><input type="text" id="endTime" name="endTime" value="{$_REQUEST['endTime']}" style="width:70px;height:16px;padding:3px;border:1px solid #bbbbbb;"/></span>
				<span><input type="submit" value="搜索" /></span>
			</div>
		</form>
		  -->
	{if $errname}<div class="errorStyle">{$errname}</div>{/if}
	{if $errtime}<div class="errorStyle">{$errtime}</div>{/if}
	{if $path_err}<div class="errorStyle">{$path_err}</div>{/if}
	<form action="admin.php?p=jobs&a=jobssave" method="post" enctype="multipart/form-data">
		<table width="100%"  border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="11%" height="36" align="right">机会名称：</td>
				<td width="89%">
					<input type="text"name="name" id="name" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['name']}"/> <span style="color:red;">*</span>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">起始时间：</td>
				<td width="89%">
					<input type="text" id="s_time" name="s_time" readonly value="{$data['s_time']}" style="width:70px;height:16px;padding:3px;border:1px solid #bbbbbb;"/>至<input type="text" id="e_time" name="e_time" value="{$data['e_time']}" readonly style="width:70px;height:16px;padding:3px;border:1px solid #bbbbbb;"/> <span style="color:red;">*</span>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">机会来源：</td>
				<td width="89%">
					<input type="text" name="source" id="source" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['source']}"/>
				</td>
			</tr>
	        <tr>
				<td height="39" align="right">大图：</td>
				<td>
					<input name="b_img" type="file"  style="width:250px;padding:3px;border:1px solid #bbbbbb;" /><span style="margin-left:10px;color:#ff0000">(*只能使用jpg格式)</span> 
					<div id="imgDiv_min"></div>
					<div id="imgDiv_min_old"><!--{if $data["b_img"] != ""}--> <a href="data/upImage/{$data['b_img']}" target="_blank"><img width="100" height="100" src="data/upImage/{$data['b_img']}" border="0"/></a><!--{/if}--></div>
				</td>
	        </tr>
	        <tr>
				<td height="39" align="right">小图：</td>
				<td>
					<input name="s_img" type="file"  style="width:250px;padding:3px;border:1px solid #bbbbbb;" /><span style="margin-left:10px;color:#ff0000">(*只能使用jpg格式)</span> 
					<div id="imgDiv_min"></div>
					<div id="imgDiv_min_old"><!--{if $data["s_img"] != ""}--> <a href="data/upImage/{$data['s_img']}" target="_blank"><img width="100" height="100" src="data/upImage/{$data['s_img']}" border="0"/></a><!--{/if}--></div>
				</td>
	        </tr>
			<tr>
				<td width="11%" height="36" align="right">工作介绍：</td>
				<td width="89%">
					<textarea id="content" name="content" style="width:600px;height:300px;">{$data["content"]}</textarea>
				</td>
			</tr>
			<tr >
				<td width="11%" height="36" align="right">商户介绍：</td>
				<td width="89%">
					<textarea id="company_content" name="company_content" style="width:600px;height:300px;">{$data["company_content"]}</textarea>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">是否推荐首页：</td>
				<td width="89%">
					<input type="radio" name="is_tuijian" id="is_tuijian" {if $data['is_tuijian'] == 2}checked="checked"{/if} value="2" >是
					<input type="radio" name="is_tuijian" id="is_tuijian" {if $data['is_tuijian'] == 1}checked="checked"{/if} value="1">否
				</td>
			</tr>	
			<tr>
				<td width="11%" height="36" align="right">是否有效：</td>
				<td width="89%">
					<input type="radio" name="is_ok" id="is_ok" {if $data['is_ok'] == 2}checked="checked"{/if} value="2" >是
					<input type="radio" name="is_ok" id="is_ok" {if $data['is_ok'] == 1}checked="checked"{/if} value="1">否
				</td>
			</tr>		
			<tr>
				<td height="48" align="right"></td>
				<td>
					<input type="hidden" id="active_type" name="active_type" value="{$active_type}">
					<input type="hidden" id="jobs_id" 	name="jobs_id" 		value="{$data['jobs_id']}">
					<input type="submit" name="Submit" value=" 保存 " />
				</td>
			</tr>
		</table>
	</form>
</div>
{template admin_bottom}